package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_advert;

import cn.com.api.mapper.ApiU_advertMapper;

import cn.com.api.service.ApiU_advertService;

/**
 * 
 **/
@Service
public class U_advertServiceImplBase {
	@Autowired
	private ApiU_advertMapper apiU_advertMapper;
    
    // 根据id获取
	public ApiU_advert findU_advertById(Integer id){
		ApiU_advert u_advert = apiU_advertMapper.findU_advertById( id );
		return u_advert;
	}
    
    //查看数据集
	public List<ApiU_advert> findU_adverts(){
        List<ApiU_advert> u_adverts = apiU_advertMapper.findU_adverts();
		return u_adverts;
    }
    
	// 添加
	public int insertU_advert(ApiU_advert u_advert){
		int ret_I= apiU_advertMapper.insertU_advert(u_advert);
		return ret_I;
	}

	// 修改
	public int updateU_advert(ApiU_advert u_advert){
		int ret_I= apiU_advertMapper.updateU_advert(u_advert);
		return ret_I;
	}
	
    // 删除
	public int deleteU_advert(Integer id){
		int ret_I= apiU_advertMapper.deleteU_advert( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


